<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<meta name="decorator" content="moduleView"/>
		<script type="text/javascript">
	function sendStatusSap(){
		Oosp_Loading('正在提交sap，请稍等...');
		$.getJSON(Com_Parameter.ContextPath + "/biz/contract/commonContract/${associatedContract.id}/sendToSap?s_bean=commonContractStatusService&contractId=${associatedContract.contractNo}&status=70&store=${associatedContract.storeId}&endDate=${intAssterminate.terminateDate}", function(data) {
			top.$.jBox.tip(data,'warning');
		});
	}
	</script>
</head>
<body>
	<div class="Report_f">
		<div class="Report_f_1">
			<div class="Report_f_title_1">
				联营合同作废意向信息
			</div>
			  <ul class="nav nav-tabs Report_f_title_2" id="myTab">
			  <li class="active"><a href="#home" data-toggle="tab">基本信息</a></li>
			   <li><a href="#workflow" data-toggle="tab">流程审批 </a></li> 
			  		<li><a href="#diagram" data-toggle="tab">流程图</a></li>
			 </ul> 
			<input type="hidden" id='intent_type' value="intAssdiscard">
			<div class="tab-content Report_f_title_3">
			   <div class="tab-pane active" id="home">
				  	<div class="Report_f_title_4">
				  		<div class="f_2">
								<div class="form-group col-sm-5">
								<label for="inputtext3" class="col-sm-5	 f_4">意向单号:</label>
								<div class="col-sm-5 f_7">
									${intAssdiscard.intentNo}
								</div>
							</div>
							<div class="form-group col-sm-5">
								<label for="inputtext3" class="col-sm-5 f_4">原合同号:</label>
									<div class="col-sm-5 f_7">
										${associatedContract.contractNo}
									</div>
							</div>
						</div>
						<div class="f_3">
							<div class="form-group col-sm-5">
									<label for="inputtext3" class="col-sm-5 f_4">原合同名称:</label>
									<div class="col-sm-5 f_7">
										${associatedContract.subject}
									</div>
							</div>
							<div class="form-group col-sm-5">
									<label for="inputtext3" class="col-sm-5	 f_4">意向单状态:</label>
									<div class="col-sm-5 f_7">
										<ossp:value dictType="INTENT_STATUS" key="${intAssdiscard.status}"></ossp:value>
									</div>
							</div>
						</div>
						
						<div class="f_2">
							<div class="form-group col-sm-5">
									<label for="inputtext3" class="col-sm-5 f_4">区域:</label>
									<div class="col-sm-5 f_7">
										${intAssdiscard.area}
									</div>
							</div>
							<div class="form-group col-sm-5">
									<label for="inputtext3" class="col-sm-5	 f_4">门店:</label>
									<div class="col-sm-5 f_7">
										${intAssdiscard.store}
									</div>
							</div>
						</div>
						
						<div class="f_3">
							<div class="form-group col-sm-5">
									<label for="inputtext3" class="col-sm-5 f_4">楼层:</label>
									<div class="col-sm-5 f_7">
										${intAssdiscard.floor}
									</div>
							</div>
							<div class="form-group col-sm-5">
							<label for="inputtext3" class="col-sm-5 f_4">供应商名称:</label>
							<div class="col-sm-5 f_7">
								${intAssdiscard.supplierName}
							</div>
						</div>
						</div>
						
					<div class="f_3">
						<div class="form-group col-sm-5">
							<label for="inputtext3" class="col-sm-5 f_4">合同是否成立:</label>
							<div class="col-sm-5 f_7">
								<ossp:value dictType="YESORNO" key="${intAssdiscard.isContractActive}"></ossp:value> 
							</div>
						</div>
						<div class="form-group col-sm-5">
							<label for="shop_lab" class="col-sm-5 f_4">是否进场营业:</label>
							<div class="col-sm-5 f_7">
								<ossp:value dictType="YESORNO" key="${intAssdiscard.isRunning}"></ossp:value>
							</div>
						</div>
					</div>
						
					<div class="f_2">
						<div class="form-group col-sm-5">
							<label for="inputtext3" class="col-sm-5 f_4">是否欠款:</label>
							<div class="col-sm-5 f_7">
								<ossp:value dictType="YESORNO" key="${intAssdiscard.isDebt}"></ossp:value> 
							</div>
						</div>
						<div class="form-group col-sm-5">
							<label for="shop_lab" class="col-sm-5 f_4">有无法律纠纷:</label>
							<div class="col-sm-5 f_7">
								<ossp:value dictType="YESORNO" key="${intAssdiscard.hasLawRisk}"></ossp:value>
							</div>
						</div>
					</div>	
					
					<div class="f_3">
						<div class="form-group col-sm-5">
							<label for="inputtext3" class="col-sm-5 f_4">作废原因说明:</label>
							<div class="col-sm-5 f_7">
								<textarea rows="5" cols="90" class="form" readonly="readonly">${intAssdiscard.discardReason}</textarea>
							</div>
						</div>
					</div>
					<div class="f_2">
						<div class="form-group col-sm-5">
							<label for="createTime_lab" class="col-sm-5 f_4">提报人:</label>
							<div class="col-sm-5 f_7">
								${intAssdiscard.createBy}
	                		</div>
						</div>
						<div class="form-group col-sm-5">
							<label for="createTime_lab" class="col-sm-5 f_4">提报时间:</label>
							<div class="col-sm-5 f_7">
								<fmt:formatDate value="${intAssdiscard.createTime}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>
	                		</div>
						</div>
				  </div>
				  <div class="f_3">
						<div class="form-group col-sm-5">
							<label for="createTime_lab" class="col-sm-5 f_4">最后修改人:</label>
							<div class="col-sm-5 f_7">
								${intAssdiscard.updateBy}
	                		</div>
						</div>
						<div class="form-group col-sm-5">
							<label for="createTime_lab" class="col-sm-5 f_4">最后修改时间:</label>
							<div class="col-sm-5 f_7">
								<fmt:formatDate value="${intAssdiscard.updateTime}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>
	                		</div>
						</div>
					</div>
				  	</div>
				  	<div class="o-l-action">
				  	<shiro:hasPermission name="com.maoye.ossp.biz.contract.intent.Common:sendToSap">
				  		<a class="btn btn-info btn_3 btn_right" role="button" onclick="sendStatusSap()" href="#">更新SAP合同状态</a>
				  	</shiro:hasPermission>
					<a class="btn btn-info btn_3 btn_right" role="button" href="${contextPath}/biz/intent/intAssdiscard/list?navId=${navId}&pageNo=${pageNo}">返回</a>
					<shiro:hasPermission name="com.maoye.ossp.biz.contract.intent.IntAssdiscard:updateAssdiscard">
						<a class="btn btn-info btn_3 btn_right" role="button" href="${contextPath}/biz/intent/intAssdiscard/${intAssdiscard.id}/edit?navId=${navId}">修改</a>
					</shiro:hasPermission>
				</div>
			   </div>
			   <!-- ------------------------------------------------- -->
			   	 	<div class="tab-pane" id="workflow"> 
						<c:import url="/WEB-INF/views/bpm/workflow/workFlowInfo_view.jsp">
							<c:param name="formName" value="com.maoye.ossp.biz.intent.entity.IntAssdiscard" />
							<c:param name="flowKey" value="IIntAssdiscard" />
							<c:param name="businessId" value="${intAssdiscard.id}"/>
							<c:param name="method" value="${method}"/>
							<c:param name="isStart" value="${isStart}"/>
						</c:import> 			
					</div>
					<div class="tab-pane" id="diagram" style="overflow-x:auto;">
						<iframe id="diagram_iframe" scrolling="no" frameborder=0 width="100%">
						</iframe>
					</div>
				   <div class="tab-pane" id="contract_hist">
				 	<iframe id="versionFrame"   name="versionFrame"  
													scrolling="no" frameborder="no" width="100%"></iframe>
				   </div>	
			    <!-- ------------------------------------------------- -->
			</div>
				 
		
		</div>
	</div>

</body>
</html>